<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>数据装载结果表详情</title>
<link href="../../static/plugin/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/plugin/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/plugin/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/plugin/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/plugin/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js" type="text/javascript"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">

	    <form id="ff" method="post">
	    	<div class="esaas-info-title">数据装载结果表信息</div>
	    	<table class="esaas-info-view-table">
			<tr>
				<td width="15%" align="right">批次流水号：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="batchSerialNo" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">批次日期：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="batchDate" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据库表名：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="tableName" data-options="required:true"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">表中文名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="tableCnname" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据表类型：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="tableType" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">供数系统名称：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="upSysname" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">数据装载方式：</td>
				<td width="35%"><select class="easyui-combobox"
					id="tableLoadMode" name="tableLoadMode"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:BAT_TABLE_LOAD_MODE">
				</select></td>
				<td width="15%" align="right">文件路径：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="loadFromFile" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">文件大小：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="fileSize" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">启动时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="startTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">结束时间：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="endTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">运行时长：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="costTime" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">读入条数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="readRows" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">装入条数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="loadRows" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">拒绝条数：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="rejectRows" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
				<td width="15%" align="right">备注：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="remark" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
			<tr>
				<td width="15%" align="right">导数结果：</td>
				<td width="35%"><select class="easyui-combobox"
					id="loadResult" name="loadResult"
					style="width: 100%; height: 25px;" disabled
					data-options="required:false,editable:false,valueField:'enname',textField:'cnname',data:BAT_EXEC_RESULT">
				</select></td>
				<td width="15%" align="right">批次标识：</td>
				<td width="35%"><input class="easyui-textbox" type="text"
					name="batchId" data-options="required:false"
					style="width: 100%; height: 25px;"></input></td>
			</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:15px">
			<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	    </div>
	</div>
	<script>	
		$(function() {
			var batchSerialNo = $.getUrlParam('batchSerialNo');
			var tableName = $.getUrlParam('tableName');
			$.restfulGet('../../api/plugin/load/result/' + batchSerialNo + '/' + tableName,null,function(data){
					$('#ff').form('load', {
						batchSerialNo : data.rows.batchSerialNo,
						batchDate : data.rows.batchDate,
						tableName : data.rows.tableName,
						tableCnname : data.rows.tableCnname,
						tableType : data.rows.tableType,
						upSysname : data.rows.upSysname,
						tableLoadMode : data.rows.tableLoadMode,
						loadFromFile : data.rows.loadFromFile,
						fileSize : data.rows.fileSize,
						startTime : data.rows.startTime,
						endTime : data.rows.endTime,
						costTime : data.rows.costTime,
						readRows : data.rows.readRows,
						loadRows : data.rows.loadRows,
						rejectRows : data.rows.rejectRows,
						remark : data.rows.remark,
						loadResult : data.rows.loadResult,
						batchId : data.rows.batchId
					});					
			});
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>